#include <types.h>

uint_8 inportb(uint_32 port) {
  uint_8 ret;
  asm volatile ("inb %%dx,%%al":
		"=a"(ret):
		"d"(port)
		);
  return ret;
}


void outportb(uint_32 port,uint_8 value) {
  asm volatile ("outb %%al,%%dx"::
		"d"(port),"a"(value)
		);
}

